/**
 * @developer：MR·Feng
 * 公共入口
 */

import styles from '@/styles/index.less';

import { withRouter } from 'umi';

import Header from '@/pages/common/header';
import Sidebar from '@/pages/common/sidebar';
import Footer from '@/pages/common/footer';

function IndexPage(props) {
    return (
        <article className={styles.index}>
            <Header />
            <main className={styles.main}>
                <Sidebar />
                <section className={styles.contents}>{props.children}</section>
            </main>
            <Footer />
        </article>
    );
}

export default withRouter(IndexPage);
